Returns the size of an array in a dimension (1, 2, or 3).
Syntax
ArraySize(Array, Dimension)
Arguments
| Argument | Description |
|---|---|
| Array | Array name. |
| Dimension | Array dimension. Valid values are 1, 2, or 3. |
Return value
| Value | Description |
|---|---|
| Value | Size of the array. |
Example
itemList = Window("BugReporter").ComboBox("comboboxType").Property("ListItems")
count = ArraySize(itemList, 1)
For x = 1 To count
curItemText = itemList(x)
Window("BugReporter").ComboBox("comboboxType").Item(curItemText).Select()
Next